<template>
  <div class="wrapper">
    <div class="breadcrumb-nav-wrapper pt20 mb20 px1000 ml60 nav">
      <el-breadcrumb separator-class="el-icon-arrow-right">
        <el-breadcrumb-item :to="{ path: '/' }">
          首页
        </el-breadcrumb-item>
        <el-breadcrumb-item>
          行业动态
        </el-breadcrumb-item>
      </el-breadcrumb>
    </div>
    <div class="list">
      <div v-for="(item,index) in develop" :key="index" class="detail">
        <div class="title">
          <img src="/develop/sj.jpg" alt="pic">
          <p class="tit">
            <nuxt-link :to="`/development/${item._id}`">
              {{ item.title }}
            </nuxt-link>
          </p>
        </div>
        <div class="date">
          <span>{{ item.updated | date }}</span>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import dayjs from 'dayjs'

export default {
  name: 'DevelopList',
  filters: {
    date (val) {
      return dayjs(val).format('YYYY-MM-DD')
    }
  },
  props: {
    develop: {
      required: true,
      type: Array,
      default: () => []
    }
  }
}
</script>
<style lang="scss" scoped>
.wrapper{
  min-height: 500px;
}
.nav{
  margin-left: 190px;
}
.list{
  font-size: 20px;
  width: 800px;
  margin: 0 auto;
  .detail{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 16px;
    .title{
      display: flex;
      align-items: center;
      img{display: inline-block}
      .tit{
        display: inline-block;
        margin-left: 5px;
      }
    }
    .date{}
  }
}
</style>
